package cn.zyq.ykb.mapper.msg;

import cn.zyq.ykb.beans.msg.Msg;
import cn.zyq.ykb.system.config.common.BaseMapper;
import com.alibaba.fastjson.JSONObject;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * 消息表
 * 2023-05-10 19:41:40
 */
@Component
@Mapper
public interface MsgMapper extends BaseMapper<Msg> {
    List<Msg> list(Map<String, Object> param);

    /**
     * 用户端查询
     *
     * @param kv
     * @return
     */
    List<Msg> h5List(JSONObject kv);

    /**
     * 未读消息统计
     *
     * @param userID
     * @return
     */
    List<Map> statistics(Integer userID);
}
